package com.guigu.community.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.guigu.community.pojo.Procure;
import com.guigu.community.vo.ProcureVo;
import com.guigu.community.vo.PurchaseRequestVo2;

import java.util.List;

public interface ProcureService extends IService<Procure> {
    //查询最大的采购Id
    String queryProcureMaxId();

    // 处理采购申请主信息
    boolean submitPurchaseRequest(PurchaseRequestVo2 purchaseRequestVo2);//

    // 处理采购商品明细信息
    boolean submitGoodsList(Integer parentId, List<ProcureVo> procureVoList);

    // 获取采购单信息
    Procure getProcureByRequest(PurchaseRequestVo2 purchaseRequestVo2);//

    //审核
    PageInfo<Procure> getProcureList(Integer pageNo, Integer pageSize,ProcureVo procureVo);

    // 审核通过
    boolean approveProcure(Integer id);

    // 审核不通过
    boolean rejectProcure(Integer id, String reason);


    PageInfo<Procure> getProcureList2(Integer pageNo, Integer pageSize,ProcureVo procureVo);
}
